﻿//
// Created: 2018/11/20
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Util
{
    public class  UserCollection:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public string CollectionId  { get; set; } 
        /// <summary>
        /// 
        /// </summary>
        public string UserId { get; set; }
       ///<summary>
       ///
       ///<summary>
        public string CollectDesc  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string CollectUrl  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Remarks  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string RefId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImgUrl  { get; set; }
        [NotMapped]
        public string CreateTimeStr { get {
                return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
            } }

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}